
function validate(){
	
	var psearch = document.getElementById('txtSearch');
	var pid = document.getElementById('sltRpid');
	var pmon  = document.getElementById('sltMon');
	var val=document.getElementById('sltRpid').value;
	
	
	if(notEmpty(psearch, "Registration Number cannot be empty")){
		     if(isNumeric(psearch,"Text feild should numeric")){
				 if(madeSelection(pid, "Select the option")){ 
				      
	                     if(val=="regno"){
							 if(madeSelection(pmon, "Select the month")){
							           return true;
							 }
							 return false;
							 }
	
	
		                  return true;
		
		
		
				 }
		return false;
		}
	return false
	}
	return false;
	}
	
	
	
	